

# ====================================================================
# This file defines the configuration for the CPU 'x86', OS 'linux' 
# and compiler 'g++'
# ===================================================================


# -----------------begin ALL PROJECTS COMPILE FLAGS --------------------
#
# This variable allows you to define compile flags for the all the projects
# For example: prj_minus_d:= -DUSE_HA -DNUM_MAX_STACK=8
coc_prj_minus_d:=
#
# -----------------end ALL PROJECTS COMPILE FLAGS ----------------------



# -----------------begin EXTERNAL DEPENDENCIES FOR ALL TESTS -----------
#
# The following variables describe projects that were not generated by the 
# 'tenacitas.build_system' that the all the tests depends on.
# 
# This variable defines directories, other than the ones defined in the system,
# where libraries for all the tests can be found. 
# No flags are needed.
# For example: test_ext_lib_dir:= /opt/extra_libs
# External libraries directory for all the tests for all the projects. Just type the name of the directory, no flags are necessary. 
coc_test_ext_lib_dir:=
#
# This variable defines directories, other than the ones defined in the system,
# where header files for all the tests can be found. 
# No flags are needed.
# For example: test_ext_inc_dir:= /opt/extra_includes
# External include directory for all the tests for all the projects. Just type the name of the directory, no flags are necessary.  
coc_test_ext_inc_dir:=
#
# This variable defines static libraries that the all the tests depends on.
# You must type the full path and name of the libray.
# For example: test_ext_static_libs:= /usr/lib/libxpto.a
coc_test_ext_static_libs:=
#
# Shared libraries produced by other projects that should be linked to the
# all the tests. 
# You just need to type the name of the project.
# For example: test_ext_lib_dir:= tenacitas.yummy tenacitas.something
coc_test_ext_shared_libs:=
#
# This variable defines programs that all the tests depends on.
# If the program file is the PATH environemnt variable, you need to type only the 
# file name, otherwise, you must infor the full path
# For example: test_ext_pgms:= openssl
coc_test_ext_pgms:=
#
# -----------------end EXTERNAL DEPENDENCIES FOR ALL TESTS --------------



# -----------------begin ALL TESTS COMPILE FLAGS ------------------------
#
# This variable allows you to define compile flags for all the tests.
# For example: prj_minus_d:= -DUSE_HA -DNUM_MAX_STACK=8
# Options informed to the compiler common to all testes for all the projects. Like -DUSE_XPTO
coc_test_minus_d:=
#
# -----------------end ALL TESTS COMPILE FLAGS -------------------------



# -----------------begin CODE GENERATION -------------------------------
#
# These variables define programs and flags to generate the code
#
# This variable defines the C++ compiler to be used
coc_cxx:=gcc
#
# This variable defines which 'ar' program to use
ar:=ar
#
# This variable defines which 'ranlib' program to use
coc_ranlib:=ranlib
#
# This variable defines the extension for the source files
coc_source_extension:=c
#
# This variable defines the extension for the header files
coc_header_extension:=h
#
# This variable defines the extension for the object files
coc_obj_extension:=o
#
# This variable defines the command to generate static library
coc_static_lib_command:=ar -r
#
# This variable defines the sufix of a static library
coc_static_lib_sufix:=.a
#
# This variable defines the prefix of a static library
coc_static_lib_prefix:=lib
#
# This variable defines the command to generate shared library
coc_shared_lib_command:=$(coc_cxx) -shared -o
#
# This variable defines the sufix of a shared library
coc_shared_lib_sufix:=.so
#
# This variable defines the prefix of a shared library
coc_shared_lib_prefix:=lib
#
# This variable defines the flags to generate a 'soname' for a shared library
coc_shared_lib_soname:=-Wl,-soname,
#
# This variable defines the command to generate a program
coc_program_command:=$(coc_cxx) -o
#
# This variable defines the sufix of a program
coc_program_sufix:=.e
#
# This variable defines the prefix of a program
coc_program_prefix:=
#
# This variable defines the flags for allowing programs and libraries to be 
# found in paths non-system paths
coc_search_lib_dir:=-Wl,-rpath,$(build_lib_dir)
#
# This variable defines compiler flags to be used for 'debug' or 'release'
# configuration
coc_common_compiler_flags:=-c -Wall  -fsigned-char
#-c -Wall -Werror -fsigned-char -Woverloaded-virtual -std=c++0x
#
# This variable defines compiler flags to be used for 'release' configuration
coc_compile_release_flags:=$(coc_common_compiler_flags) -O3
#
# This variable defines compiler flags to be used for 'debug' configuration
coc_compile_debug_flags:=$(coc_common_compiler_flags) -g3 -DDEBUG




#
# This variable defines the flag to be prefixed when defining non-system 
# directories for where libraries can be found
lib_dir_flag:=-L
#
# This variable defines the flag to be prefixed when defining non-system 
# directories for where header filed can be found
inc_dir_flag:=-I
#
# This variable defines the flag that identifies a library to be dynamic 
# linked
shared_lib_flag:=-l
#
# -----------------end CODE GENERATION ---------------------------------


